package cn.restcloud.example.service;

import cn.restcloud.framework.core.annotation.bean.BeanConfig;
import cn.restcloud.framework.core.annotation.bean.BeanType;
import cn.restcloud.framework.core.util.*;
import cn.restcloud.framework.mock.base.IMockDataRulePlugin;

@BeanConfig(appId = "example",beanId = "MockDataService",beanName = "模拟数据生成规则",beanType = BeanType.SERVICE,autowired = true,singleton = true,hotMode = true)
public class MockDataService implements IMockDataRulePlugin{
	/**
	 * parameterStr为配置数据生成规则时|符号后面的字符串
	 */
	@Override
	public Object execute(String parameterStr) throws Exception {
		return CommonUtil.getRandom(0, 20);
	}
}
